package views;
import java.awt.CardLayout;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;


public class MainFrame extends JFrame{
	CardLayout cardLayout;
	public final static String WELCOME ="welcome";
	public final static String GAME ="game";
	
	WelcomeView welcomeView;
	GameView gameView ;
	public MainFrame(){
		super("Ligth Reflection");
		this.setResizable(false);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLayout(cardLayout = new CardLayout());
		this.add(welcomeView=new WelcomeView(this,200,300),MainFrame.WELCOME);
		this.add(gameView =new GameView(this,1200,900),MainFrame.GAME);
		welcomeView.resizeWindow();
	}
	public static void main(String[] a){
		SwingUtilities.invokeLater(new Runnable(){
			public void run(){
				new MainFrame().setVisible(true);
			}
		});
	}
}
